import cn.wolfcode.crm.domain.Gift;
import cn.wolfcode.crm.service.IGiftService;
import cn.wolfcode.crm.service.IMemberInfoService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import java.math.BigDecimal;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContext.xml")
public class App {
    @Autowired
    private IMemberInfoService memberInfoService;
    @Test
    public void testSave() {
        memberInfoService.vipConsume(36L,new BigDecimal("200"),1L);
    }
}
